import { addFn } from './add'
console.log(addFn(1, 2))

//引入JQ
import $ from 'jquery'
$('#app li:odd').css('color', 'pink')
$('#app li:even').css('color', 'lime')

//引入CSS文件
import './css/index.css'
//引入less文件
import './less/index.less'
//引入图片
import imgObj from './assets/logo_small.png'
const theImg = document.createElement('img')
theImg.src = imgObj
/* document.querySelector('div').appendChild(theImg) */
//引入字体图标
import './assets/fonts/iconfont.css'

//JS高级语法
const arr = [10, 20, 30]
const res = arr.reduce((prev, item) => prev += item, 0)
console.log(res)